import java.util.Scanner;
/**
 * Created by my on 2017/8/11.
 */
public class Person {
    private  String name;
    private  int age;
    public void setName(String name){
        this.name=name;
    }
    public String getName(){
        return this.name;
    }
    public void setAge(int age){
        this.age=age;
    }
    public int getAge(){
        return this.age;
    }
    public void walk(){
        if(0<=age&&age<1){
            System.out.println("麻麻抱我走");
        } if(1<=age&&age<5){
            System.out.println("我是爬着的");
        } if(5<=age&&age<80){
            System.out.println("我站着走");
        } if(80<=age&&age<100){
            System.out.println("我用拐杖走");
        } if(100<=age&&age<130) {
            System.out.println("我不走了");
        }  if(age>=130){
            System.out.println("你能活到"+age+"岁吗？");
        }
        if(age<0){
            System.out.println("我在麻麻肚子里学开车");
        }
    }
    public static void main(String[]args){
        Person person=new Person();
        Scanner scanner=new Scanner(System.in);
        System.out.println("输入名字： ");
        String name=scanner.nextLine();
        System.out.println("输入年龄： ");
        int age=scanner.nextInt();
        scanner.close();
        person.setAge(age);
        person.setName(name);
        System.out.println("我是："+person.getName());
        person.walk();
    }
}
